<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/1/7
 * Time: 16:42
 */

namespace app\index\controller;

use think\Db;

class Product
{
    public function product(){
        $list=Db::table("product")->order("id")->page(1,48)->select();
//        print_r($list);
        return view('product')->assign("list",$list);

    }
}